package com.hm.edu.fourcare;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Toast;

public class Vitalparameter extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_vitalparameter);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.vitalparameter, menu);
		return true;
	}

	public void submitVitalparam(View view){
		
		Context context = getApplicationContext();
		CharSequence text = "Vitalparameter gespeichert!";
		int duration = Toast.LENGTH_SHORT;

		Toast toast = Toast.makeText(context, text, duration);
		toast.show();
		
		Intent intent = new Intent(this, MainMenu.class);
		startActivity(intent);
	}
	
}
